package com.ndp.fb.walle.model.vo.customaudience.result;

import com.ndp.fb.rdb.model.customaudience.CustomAudienceItem;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * Created by elvisxiong on 15/12/18.
 */
@Setter
@Getter
@NoArgsConstructor
public class CustomAudienceItemResult {

    //编号
    private Long id;

    //facebook广告账号
    private Long fbAccountId;

    //账号的名称
    private String fbAccountName;

    //facebook返回的自定义受众ID
    private Long customAudienceId;

    //自定义受众状态
    private Integer requestQueueStatus;

    //传递状态码
    private Integer deliveryStatusCode;

    //传递状态描述
    private String deliveryStatusDescription;

    //操作状态码
    private Integer operationStatusCode;

    //操作状态描述
    private String operationStatusDescription;

    //自定义受众更新时间
    private Long timeUpdated;

    public CustomAudienceItemResult(CustomAudienceItem customAudienceItem){
        this.id = customAudienceItem.getId();
        this.fbAccountId = customAudienceItem.getFbAccountId();
        this.fbAccountName = customAudienceItem.getFbAccountName();
        this.customAudienceId = customAudienceItem.getCustomAudienceId();
        this.requestQueueStatus = customAudienceItem.getRequestQueueStatus();
        this.deliveryStatusCode = customAudienceItem.getDeliveryStatusCode();
        this.deliveryStatusDescription = customAudienceItem.getDeliveryStatusDescription();
        this.operationStatusCode = customAudienceItem.getOperationStatusCode();
        this.operationStatusDescription = customAudienceItem.getOperationStatusDescription();
        this.timeUpdated = customAudienceItem.getTimeUpdated();
    }

}
